//
// Created by liushuai on 2020/4/3.
//

#ifndef BYTEDANCE_LENGTHOFLONGESTSUBSTRING_H
#define BYTEDANCE_LENGTHOFLONGESTSUBSTRING_H

#include <string>
#include <queue>
using namespace std;
int lengthOfLongestSubstring(string s){
    vector<char> char_array(26,0);
    for(auto e:s){
        int hash_pos = e-'a';
        if(char_array[hash_pos] == 0)
            char_array[hash_pos]+=1;
    }
};

#endif //BYTEDANCE_LENGTHOFLONGESTSUBSTRING_H
